import Vue from 'vue'
import App from './App.vue'
import router from './router'



//图片加载
if (process.env.NODE_ENV === 'development') {
  Vue.prototype.$pre = 'http://localhost:2000'
} else {
  Vue.prototype.$pre = ''
}

// 1.reset.css
import "./assets/css/reset.css"

//图标
import "./assets/css/iconfont.css"

// 2.rem.js
import './assets/js/rem'

// 3.过滤器
import "./filers"

//动画
import "animate.css"

//ui组件库
import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);

// 封装搜索与按钮
import {CommonComponent} from "./components"
Vue.use(CommonComponent)

//过滤器
import "./filers"

// 4.

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
